﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;
using BLL;
using DAL.Linq;

namespace InvoiceManagement.Controllers
{
    public class DM_HANGHOAController
    {
        private static IDMHANGHOA_Dao DM_HangHoaController = DataAccess.DMHANGHOA_Dao;

        public bool DMHangHoa_Insert(string MaHangHoa, string TenHangHoa, int MaDonViTinh, decimal DonGia, bool IsUse, int CreateBy)
        {
            return DM_HangHoaController.DMHangHoa_Insert(MaHangHoa, TenHangHoa, MaDonViTinh, DonGia, IsUse, CreateBy);
        }

        public bool DMHangHoa_Update(string MaHangHoa, string TenHangHoa, int MaDonViTinh, decimal DonGia, bool IsUse, int ModifiedBy, DateTime ModifiedOn)
        {
            return DM_HangHoaController.DMHangHoa_Update(MaHangHoa, TenHangHoa, MaDonViTinh, DonGia, IsUse, ModifiedBy,ModifiedOn);
        }

        public bool DMHangHoa_Delete(string MaHangHoa)
        {
            return DM_HangHoaController.DMHangHoa_Delete(MaHangHoa);
        }

        public IList<DMHANGHOA> GetAll_DMHangHoa()
        {
            return DM_HangHoaController.GetAll_DMHangHoa();
        }
    }
}
